<?php

class Zend_View_Helper_ProductIcon extends Zend_View_Helper_Abstract
{

	/**
	 * @param Sherpa_Model_Icon $icon
	 * @return string
	 */
	public function productIcon(Sherpa_Model_Icon $icon)
	{
		$xhtml = sprintf('<img src="sherpa/img/icons/%s" alt="%s" title="%s" width="59" height="55" />',
			$icon->getFilename(),
			$icon->getLabel(),
			$icon->getInfo()
		);
		return $xhtml;
	}

}